package com.ldk.base.framework.util;

/**
 * 签名工具类
 * @author xiangwl
 *
 */
public class SignUtil {
	
	public static String encrypt(String json, int version, String encryptKey){
		
		String plaintext = String.format("%s%s", encryptKey, version);
		plaintext = EncryptUtil.md5(plaintext).toLowerCase();
		plaintext = String.format("%s%s", json, plaintext);
		
		String sign = EncryptUtil.md5(plaintext).toLowerCase();
		
		return sign;
	}
}
